﻿<link href="@Url.Content("~/content/activitie_detail.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/content/table_btn.css")" rel="stylesheet" type="text/css"/>

<!--[if lt IE 8]>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
<![endif]-->

<noscript>
    <link href="@Url.Content("~/content/activitie_create.css")" rel="stylesheet" type="text/css"/>
    <link href="@Url.Content("~/content/activitie_noscript.css")" rel="stylesheet" type="text/css"/>
</noscript>

@model PessMvc.Models.CountyAdminModel

@{
    ViewBag.Title = "EditCountyAdmin";
}

<h2>编辑区县管理员信息</h2>
<div id="operate">
        <div id="del">
        @using(Html.BeginForm("DeleteCountyAdmin","Account",FormMethod.Post)){
                @Html.Hidden("UserName", new { UserName = Model.UserName });
                 <input type="submit" value="删除用户" /><span>&#8195;</span>
        }</div>
    @Html.ActionLink("重置密码", "ResetPassword", "Account", new {userName=Model.UserName,
                        returnUrl = HttpContext.Current.Request.RawUrl },null)
    &#8195; @Html.ActionLink("返回区县管理员列表", "CountyAdmins")
</div>

@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset class="edit">
        <legend>@Html.DisplayFor(model => model.UserName)（@Html.DisplayFor(model=>model.CountyName)）</legend>

        @*<div class="editor-label">
            
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>*@
        <div class="editor-label-inLine">
            @*@Html.LabelFor(model => model.Email)*@电子邮件：
        </div>
        <div class="editor-field-inLine">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        @*<div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.CountyCode)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.CountyCode)
            @Html.ValidationMessageFor(model => model.CountyCode)
        </div>*@

        @*<div class="editor-label">
            @Html.LabelFor(model => model.CountyName)
            
        </div>*@
        @*<div class="editor-field">
            @Html.EditorFor(model => model.CountyName)
            @Html.ValidationMessageFor(model => model.CountyName)
        </div>*@

        <div class="editor-btn-inLine">
            <input type="submit" value=" 保存 " />
        </div>

    </fieldset>
}
@*<div>@Html.ActionLink("重置密码", "ResetPassword", "Account", new {userName=Model.UserName },null)</div>*@

@*Form不能嵌套在Form里！！！*@
@*<div>@Html.ActionLink("重置密码", "ResetPassword", "Account", new {userName=Model.UserName },null)</div>*@
